package com.jj.service;

import com.jj.entity.Student;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface StudentService {
    List<Student> selectAllStudent();
    Student selectAllByIdStudent(Long id);
    @Transactional
    boolean addStudent(Student student);
    @Transactional
    boolean updateStudent(Student student);
    @Transactional
    boolean deleteStudent(Long id);
}
